<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改用户')" />
	<th:block th:include="include :: select2-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-user-edit" th:object="${user}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
            <h4 class="form-header h4">基本信息</h4>
            <div class="form-group">	
				<label class="col-sm-2 control-label">头像：</label>
				<div class="col-sm-3">
					<input id="avatar" name="avatar" th:field="*{avatar}" class="form-control" type="hidden">
					<img id="avatarSrc" src="" width="80px" height="80px">
				</div>
				
				<label class="col-sm-2 control-label">昵称：</label>
				<div class="col-sm-3">
					<input id="nickname" name="nickname" th:field="*{nickname}" class="form-control" type="text">
				</div>
			</div>
			
			<div class="form-group">	
				<label class="col-sm-2 control-label">会员等级：</label>
				<div class="col-sm-3">
					<input id="vipLevel" name="vipLevel" th:field="*{vipLevel}" class="form-control" type="text">
				</div>
				
				<label class="col-sm-2 control-label">真实姓名：</label>
				<div class="col-sm-3">
					<input id="realname" name="realname" th:field="*{realname}" class="form-control" type="text">
				</div>
			</div>
			
			<div class="form-group">	
				<label class="col-sm-2 control-label">注册时间：</label>
				<div class="col-sm-3">
					<input id="registerDate" name="registerDate" th:field="*{registerDate}" class="form-control" type="text">
				</div>
			
				<label class="col-sm-2 control-label">入学年份：</label>
				<div class="col-sm-3">
					<input id="entrance" name="entrance" th:field="*{entrance}" class="form-control" type="text">
				</div>
			</div>
			
			<div class="form-group">	
				<label class="col-sm-2 control-label">学校：</label>
				<div class="col-sm-3">
					<input id="school" name="school" th:field="*{school}" class="form-control" type="text">
				</div>
				
				<label class="col-sm-2 control-label">院系：</label>
				<div class="col-sm-3">
					<input id="faculty" name="faculty" th:field="*{faculty}" class="form-control" type="text">
				</div>
			</div>
			
			<div class="form-group">	
				<label class="col-sm-2 control-label">专业：</label>
				<div class="col-sm-3">
					<input id="specialty" name="specialty" th:field="*{specialty}" class="form-control" type="text">
				</div>
				
				<label class="col-sm-2 control-label">身份证号：</label>
				<div class="col-sm-3">
					<input id="idcard" name="idcard" th:field="*{idcard}" class="form-control" type="text">
				</div>
			</div>
			
			<div class="form-group">	
				<label class="col-sm-2 control-label">身份证照片：</label>
				<div class="col-sm-8">
					<input id="idcardimg" name="idcardimg" th:field="*{idcardimg}" class="form-control" type="hidden">
					<img id="idcardimgSrc" src="" width="200px" height="200px">
				</div>
			</div>
			
			<div class="form-group">	
				<label class="col-sm-2 control-label">学生证图片：</label>
				<div class="col-sm-8">
					<input id="studentimg" name="studentimg" th:field="*{studentimg}" class="form-control" type="hidden">
					<img id="studentimgSrc" src="" width="200px" height="200px">
				</div>
			</div>
			<br/>
			<h4 class="form-header h4">交易信息</h4>
			
			<div class="form-group">	
				<label class="col-sm-2 control-label">订单总数量：</label>
				<div class="col-sm-3">
					<input id="orderAmount" name="orderAmount" th:field="*{orderAmount}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label">消费总金额：</label>
				<div class="col-sm-3">
					<input id="costedMoney" name="costedMoney" th:field="*{costedMoney}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label">最近成交时间：</label>
				<div class="col-sm-3">
					<input id="recentlyTime" name="recentlyTime" th:field="*{recentlyTime}" class="form-control" type="text">
				</div>
			</div>
			<br/>
			<h4 class="form-header h4">审核信息填写</h4>
			<div class="form-group">
				<label class="col-sm-2 control-label">业务范围：</label>
				<div class="col-sm-8">
					<label class="check-box"><input name="service"
						type="checkbox" value="快递寄件">快递寄件</label> <label class="check-box"><input
						name="service" type="checkbox" value="快递取件">快递取件</label> <label
						class="check-box"><input name="service" type="checkbox"
						value="闪送订单">闪送订单</label> <label class="check-box"><input
						name="service" type="checkbox" value="跑腿订单">跑腿订单</label>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 control-label">负责校区：</label>
				<div class="col-sm-8">
					<!-- <input id="schools" name="schools" class="form-control"  th:field="*{schools}" style=""> -->
					<select id="schools" name="schools" class="form-control m-b "
						multiple="multiple">
						<option th:each="school:${schoolList}"
							th:value="${school.schoolName}" th:text="${school.schoolName}"
							th:selected="${school.flag}"></option>
					</select>
				</div>
			</div>
			
			<div class="form-group">	
				<label class="col-sm-2 control-label">审核意见：</label>
				<div class="col-sm-8">
					<textarea id="verifyRemark" name="verifyRemark" th:field="*{verifyRemark}" class="form-control"></textarea>
				</div>
			</div>















































			<!-- <div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="groupid" name="groupid" th:field="*{groupid}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="level" name="level" th:field="*{level}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="agentid" name="agentid" th:field="*{agentid}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="openid" name="openid" th:field="*{openid}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="openidWa" name="openidWa" th:field="*{openidWa}" class="form-control" type="text">
				</div>
			</div>
			
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="mobile" name="mobile" th:field="*{mobile}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="pwd" name="pwd" th:field="*{pwd}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="content" name="content" th:field="*{content}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="createtime" name="createtime" th:field="*{createtime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="agenttime" name="agenttime" th:field="*{agenttime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="status" name="status" th:field="*{status}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="isagent" name="isagent" th:field="*{isagent}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="clickcount" name="clickcount" th:field="*{clickcount}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="agentlevel" name="agentlevel" th:field="*{agentlevel}" class="form-control" type="text">
				</div>
			</div>
			
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="credit1" name="credit1" th:field="*{credit1}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="credit2" name="credit2" th:field="*{credit2}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="birthyear" name="birthyear" th:field="*{birthyear}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="birthmonth" name="birthmonth" th:field="*{birthmonth}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="birthday" name="birthday" th:field="*{birthday}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="gender" name="gender" th:field="*{gender}" class="form-control" type="text">
				</div>
			</div>
			
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="province" name="province" th:field="*{province}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="city" name="city" th:field="*{city}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="area" name="area" th:field="*{area}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="childtime" name="childtime" th:field="*{childtime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="agentnotupgrade" name="agentnotupgrade" th:field="*{agentnotupgrade}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="renzheng" name="renzheng" th:field="*{renzheng}" class="form-control" type="text">
				</div>
			</div>
			
			
			
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="riderstatus" name="riderstatus" th:field="*{riderstatus}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="ordermoney" name="ordermoney" th:field="*{ordermoney}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">状态 0注销 1ok：</label>
				<div class="col-sm-8">
					<input id="valid" name="valid" th:field="*{valid}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">token：</label>
				<div class="col-sm-8">
					<input id="accesstoken" name="accesstoken" th:field="*{accesstoken}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="fenxiao1" name="fenxiao1" th:field="*{fenxiao1}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="fenxiao2" name="fenxiao2" th:field="*{fenxiao2}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="fenxiao3" name="fenxiao3" th:field="*{fenxiao3}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">用户级别：</label>
				<div class="col-sm-8">
					<input id="userLevel" name="userLevel" th:field="*{userLevel}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">最近登陆学校：</label>
				<div class="col-sm-8">
					<input id="zjSchool" name="zjSchool" th:field="*{zjSchool}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">骑手认证状态 发起1 同意2 打回0：</label>
				<div class="col-sm-8">
					<input id="verify" name="verify" th:field="*{verify}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">认证成功时间：</label>
				<div class="col-sm-8">
					<input id="rzDate" name="rzDate" th:field="*{rzDate}" class="form-control" type="text">
				</div>
			</div>
			
			<div class="form-group">	
				<label class="col-sm-3 control-label">会员等级：</label>
				<div class="col-sm-8">
					<input id="vipLevel" name="vipLevel" th:field="*{vipLevel}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">黑名单 1为已加入黑名单 0为未加入：</label>
				<div class="col-sm-8">
					<input id="black" name="black" th:field="*{black}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<input id="remark" name="remark" th:field="*{remark}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">订单总数量：</label>
				<div class="col-sm-8">
					<input id="orderAmount" name="orderAmount" th:field="*{orderAmount}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">消费总金额：</label>
				<div class="col-sm-8">
					<input id="costedMoney" name="costedMoney" th:field="*{costedMoney}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">最近成交时间：</label>
				<div class="col-sm-8">
					<input id="recentlyTime" name="recentlyTime" th:field="*{recentlyTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">注册时间：</label>
				<div class="col-sm-8">
					<input id="registerDate" name="registerDate" th:field="*{registerDate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">认证发起时间：</label>
				<div class="col-sm-8">
					<input id="applyVerifyDate" name="applyVerifyDate" th:field="*{applyVerifyDate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">审核时间：</label>
				<div class="col-sm-8">
					<input id="verifyDate" name="verifyDate" th:field="*{verifyDate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">业务范围：</label>
				<div class="col-sm-8">
					<input id="service" name="service" th:field="*{service}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">校区：</label>
				<div class="col-sm-8">
					<input id="schools" name="schools" th:field="*{schools}" class="form-control" type="text">
				</div>
				
				<label  class="check-box"><input name="schools" type="checkbox" value="快递寄件">快递寄件</label>
				<label  class="check-box"><input name="schools" type="checkbox" value="快递取件">快递取件</label>
				<label  class="check-box"><input name="schools" type="checkbox" value="闪送订单">闪送订单</label>
				<label  class="check-box"><input name="schools" type="checkbox" value="跑腿订单">跑腿订单</label>
			</div> -->
		</form>
    </div>
    <div th:include="include::footer"></div>
    <th:block th:include="include :: select2-js" />
    <script type="text/javascript">
		var prefix = ctx + "User/userVerify";
		$("#form-user-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-user-edit').serialize());
	        }
	    }
		
		var img = document.getElementById('avatarSrc');
		var fileinput = document.getElementById('avatar');
		if (fileinput.value != '') {
			img.src = fileinput.value;
		}
		
		var img2 = document.getElementById('idcardimgSrc');
		var fileinput2 = document.getElementById('idcardimg');
		if (fileinput2.value != '') {
			img2.src = fileinput2.value;
		}
		
		var img3 = document.getElementById('studentimgSrc');
		var fileinput3 = document.getElementById('studentimg');
		if (fileinput3.value != '') {
			img3.src = fileinput3.value;
		}
		
		var str = '[[${user.service}]]';
		/* var str = document.getElementById('zhongjianzhi').value;*/
		$(str.split(",")).each(function (i,e){
		    $("input[name='service'][value='"+e+"']").prop("checked",true);
		}); 
		
		function setRule() {
			/* var selectValue=$('#expertId option:selected').text();
			var arr=selectValue.replace(/士/g,function(i){
				return i+"";
			});
			document.getElementById("schools").value=arr; */
			/*  var selectValue = $("#expertId").val();
			    arr = selectValue.split(",");//注意：arr为select的id值组成的数组
			    $('#schools').val(arr); */
		}
	</script>
</body>
</html>
